package org.jeecg.modules.demo.ddyht.service.impl;

import org.jeecg.modules.demo.ddyht.entity.DdygInventory;
import org.jeecg.modules.demo.ddyht.entity.JxcDapingshuju;
import org.jeecg.modules.demo.ddyht.mapper.DdygInventoryMapper;
import org.jeecg.modules.demo.ddyht.service.IDdygInventoryService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 库存明细
 * @Author: jeecg-boot
 * @Date:   2025-02-23
 * @Version: V1.0
 */
@Service
public class DdygInventoryServiceImpl extends ServiceImpl<DdygInventoryMapper, DdygInventory> implements IDdygInventoryService {

    @Override
    public List<DdygInventory> getBycompany(String username) {
        return baseMapper.getBycompany(username);
    }

    @Override
    public DdygInventory getBymodelcompany(String model, String companyId) {
        return baseMapper.getBymodelcompany(model,companyId);
    }

    @Override
    public String tz(String username) {
        return baseMapper.tz(username);
    }

    @Override
    public JxcDapingshuju getshuju(String companyId) {
        return baseMapper.getshuju(companyId);
    }

    @Override
    public void updateshuju(String risell, String rijin, String riben, String rirun, String companyId) {
        baseMapper.updateshuju(risell, rijin, riben, rirun, companyId);
    }

    @Override
    public void updateshujuyue(String saleamount, String stockamount, String costamount, String profit, String companyId) {
        baseMapper.updateshujuyue(saleamount, stockamount, costamount, profit, companyId);
    }

    @Override
    public void updateshujunian(String saleamount, String stockamount, String costamount, String profit, String companyId) {
        baseMapper.updateshujunian(saleamount, stockamount, costamount, profit, companyId);
    }

    @Override
    public String xz() {
        return baseMapper.xz();
    }

    @Override
    public String getCostingnianamount(String day, String companyId) {
        return baseMapper.getCostingnianamount(day, companyId);
    }

    @Override
    public JxcDapingshuju selectshuju(String companyId) {
        return baseMapper.selectshuju(companyId);
    }

    @Override
    public void saveyue(JxcDapingshuju jxcDapingshuju) {
        baseMapper.saveyue(jxcDapingshuju);
    }

    @Override
    public void saveri(JxcDapingshuju jxcDapingshuju) {
        baseMapper.saveri(jxcDapingshuju);
    }

    @Override
    public void savenian(JxcDapingshuju jxcDapingshuju) {
        baseMapper.savenian(jxcDapingshuju);
    }
}
